﻿using System.Collections.Generic;
using System.Linq;
namespace GroupBuy.Model.DAO
{
	public class CityDAO
	{
		public static void Add(Tab_City city)
		{
			DBEntity ent = new DBEntity();
			ent.AddToTab_City(city);
			ent.SaveChanges();
		}

		public static List<Tab_City> GetAll()
		{
			DBEntity ent = new DBEntity();
			return (from city in ent.Tab_City
			       select city).ToList();
		}
	}
}